Skip to content

refactor: Refactor test assertions and clean up test files#763

Merged
Roopan-Microsoft merged 1 commit intodevfrom
code-quality
Mar 12, 2026
Merged

refactor: Refactor test assertions and clean up test files#763
Roopan-Microsoft merged 1 commit intodevfrom
code-quality

Conversation

@Kanchan-Microsoft
Copy link
Contributor

@Kanchan-Microsoft Kanchan-Microsoft commented Mar 11, 2026

Purpose

This pull request primarily includes test improvements and minor code cleanups across the codebase. The most significant changes are improved test assertions, cleanup of redundant imports and code, and clarification of exception handling in test utilities.

Test improvements and assertions:

  • Improved assertions in test_upload_product_image_png by checking the correct url, verifying the description, and ensuring the upload method is called exactly once.

Code cleanup and organization:

  • Removed redundant imports and duplicate code in test_orchestrator.py, and ensured consistent usage of the orch_module import for orchestrator-related tests.
  • Removed commented-out and unused pytest hook code from conftest.py in the E2E tests.

Exception handling:

  • Added a clarifying comment to ignore exceptions during event loop cleanup in the pytest session finish hook.

Content generation findings for Maintainability-8 and Reliablitity-1 rest others are for doc-gen
image

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Kanchan-Microsoft Kanchan-Microsoft changed the title Refactor: Refactor test assertions and clean up test files refactor: Refactor test assertions and clean up test files Mar 11, 2026
@Roopan-Microsoft Roopan-Microsoft merged commit 081a8ba into dev Mar 12, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants